package com.Cychat.doctor.mapper;

import com.Cychat.commons.entity.pojo.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {
    /**
     * 根据ID查询科室信息
     */
    @Select("SELECT * FROM department WHERE department_id = #{departmentId}")
    Department selectById(@Param("departmentId") Long departmentId);
}
